import { http } from '@/utils/http.js'

/**
 * 首页-查询推荐/减脂/饮食健康/关注页面--百科文章列表
 */
export const getKnowledgeListAPI = (data) => {
	return http.get('/patient/home/knowledge', {params: data})
}

/**
 * 首页-关注的医生列表
 */
export const getDoctorListAPI = (current = 1, pageSize = 5) => {
	return http.get('/home/page/doc', {params: { current, pageSize }})
}

/**
 * 关注-关注操作
 */
export const doctorLikeAPI = (id, type = 'doc') => {
	return http.post('/like', { id, type})
}